<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ page import="org.springframework.context.ApplicationContext" %>
<%@page import="java.net.URLDecoder"%>
<%@ page import="com.sz.common.SZUtility" %>
<%@page import="com.sz.business.dao.IBusinessDAO"%>
<%@ page import="com.sz.common.ICommonDAO" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";


String style1 = "width: 100px;text-align:right;font-size: 12px;";
String style2 = "font-size: 12px";

String input_text = "width: 220px";
String input_text_gray = "width: 220px; color: gray";

String title = "商家信息";
if(title != null) {
	title = URLDecoder.decode(title, "UTF-8");
	
}

ServletContext servletContext = request.getSession().getServletContext(); 
ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(servletContext);

ICommonDAO oCommDao = (ICommonDAO) context.getBean("CommonDAO");
IBusinessDAO oBusiness = (IBusinessDAO) context.getBean("BusinessDAO");

String region_id = request.getSession().getAttribute("regionid").toString();
String Region_sql = "select REGION_NAME from region where region_id = " + region_id;

Map<Object, Object> param = new HashMap<Object, Object>();
String business_id = request.getParameter("business_id");
param.put("BUSINESS_ID", business_id);

List listRegion = oCommDao.queryForList(Region_sql);
List listBusiness = oBusiness.queryBusinessDetail(param);

Map mapRegion = new HashMap(); 
if (listRegion.size() > 0)
{
	mapRegion = (Map)listRegion.get(0);
}

Map mapBusiness = new HashMap(); 
if(listBusiness.size() > 0) 
{
	mapBusiness = (Map)listBusiness.get(0);
}
String  RegionMainName = mapRegion.get("REGION_NAME").toString();
 
String RegionName = SZUtility.toString(mapBusiness.get("REGION_NAME"));
String GroupName = SZUtility.toString(mapBusiness.get("GROUP_NAME"));
String InfoSource = SZUtility.toString(mapBusiness.get("INFO_SOURCE"));

String CheckStatus = SZUtility.toString(mapBusiness.get("CHECK_STATUS"));
String WorkStatus = SZUtility.toString(mapBusiness.get("WORK_STATUS"));
String PreorderFlag = SZUtility.toString(mapBusiness.get("PREORDER_FLAG"));
String X = "经度:" + SZUtility.toString(mapBusiness.get("X"));
String Y = "纬度:" + SZUtility.toString(mapBusiness.get("Y"));
String PublishState = SZUtility.toString(mapBusiness.get("PUBLISH_STATE"));
String RedFlag = SZUtility.toString(mapBusiness.get("RED_FLAG"));//推荐状态
String Name = SZUtility.toString(mapBusiness.get("NAME"));
String NameEnglish = SZUtility.toString(mapBusiness.get("NAME_ENGLISH"));
String  Alias = SZUtility.toString(mapBusiness.get(" ALIAS"));
String LoginName = SZUtility.toString(mapBusiness.get("LOGIN_NAME"));
String Tel1 = SZUtility.toString(mapBusiness.get("TEL1"));
String Adress = SZUtility.toString(mapBusiness.get("ADDRESS"));
String PostCode = SZUtility.toString(mapBusiness.get("POST_CODE"));
String CrossRoad = SZUtility.toString(mapBusiness.get("CROSSROAD"));
String LandMark = SZUtility.toString(mapBusiness.get("LANDMARK"));
String Traffic = SZUtility.toString(mapBusiness.get("TRAFFIC"));
String Descript = SZUtility.toString(mapBusiness.get("DESCRIPT"));
String Email = SZUtility.toString(mapBusiness.get("EMAIL"));
String NetAddress = SZUtility.toString(mapBusiness.get("NET_ADDRESS"));
String Fax = SZUtility.toString(mapBusiness.get("FAX"));
String MainUser = SZUtility.toString(mapBusiness.get("MAIN_USER"));
String MainUserTel = SZUtility.toString(mapBusiness.get("MAIN_USER_TEL"));
String CourseSerialName = SZUtility.toString(mapBusiness.get("COURSE_SERIAL_NAME"));
String SpecialCourse = SZUtility.toString(mapBusiness.get("SPECIAL_COURSE"));
String Flavor = SZUtility.toString(mapBusiness.get("FLAVOUR"));
String AvgFee = SZUtility.toString(mapBusiness.get("AVG_FEE"));
String LowFee = SZUtility.toString(mapBusiness.get("LOW_FEE"));
String Discount = SZUtility.toString(mapBusiness.get("DISCOUNT"));
String RoomFlag = SZUtility.toString(mapBusiness.get("ROOM_FLAG"));
String PreorderDescrip = SZUtility.toString(mapBusiness.get("PREORDER_DESCRIP"));
String Reserve = SZUtility.toString(mapBusiness.get("RESERVE"));
String RoomNum = SZUtility.toString(mapBusiness.get("ROOM_NUM")) + "间";
String WorkTime = SZUtility.toString(mapBusiness.get("WORKTIME"));
String Devices = SZUtility.toString(mapBusiness.get("DEVICES"));
String CardTypeInfo = SZUtility.toString(mapBusiness.get("CARD_TYPE_INFO"));
String CreditCardFlag = SZUtility.toString(mapBusiness.get("CREDITCARD_FLAG"));
String CousumeCardFlag = SZUtility.toString(mapBusiness.get("CONSUMECARD_FLAG"));
String ServiceDescrip = SZUtility.toString(mapBusiness.get("SERVICE_DESCRIP"));
String ParkDescrip = SZUtility.toString(mapBusiness.get("PARK_DESCRIP"));
String OutDescrip = SZUtility.toString(mapBusiness.get("OUT_DESCRIP"));
String Area = SZUtility.toString(mapBusiness.get("AREA"));
String Environment = SZUtility.toString(mapBusiness.get("ENVIRONMENT"));
String Device = SZUtility.toString(mapBusiness.get("DEVICES"));
String KeyWords = SZUtility.toString(mapBusiness.get("KEYWORDS"));
String CommentText = SZUtility.toString(mapBusiness.get("COMMENT_TEXT"));
String DepositDescrip = SZUtility.toString(mapBusiness.get("DEPOSIT_DESCRIP"));
String CheckOrderMode = SZUtility.toString(mapBusiness.get("CHECK_ORDER_MODE"));
String CheckContact = SZUtility.toString(mapBusiness.get("CHECK_CONTACT"));
String CheckTel = SZUtility.toString(mapBusiness.get("CHECK_TEL"));
String CheckNotice = SZUtility.toString(mapBusiness.get("CHECK_NOTICE"));
//String ParkDescrip = SZUtility.toString(mapBusiness.get("PARK_DESCRIP"));
//String ParkDescrip = SZUtility.toString(mapBusiness.get("PARK_DESCRIP"));


//String demand_time_d = demand_time_str.substring(0,10);
//String demand_time_t = demand_time_str.substring(11,13);
//String status = SZUtility.toString(mapBusiness.get("STATUS"));
//String status_name = SZUtility.toString(mapBusiness.get("STATUS_NAME"));
%>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link href="<%= request.getContextPath() %>/css/main.css" rel="stylesheet" type="text/css" />
		<base href="<%=basePath%>" target="_self">
		<title><%=title%></title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="">
		<meta http-equiv="description" content="商家信息" >
	</head>
	
	<body onload="onLoad()">
		<script type="text/javascript" src="js/calendar.js"></script>
		<script type="text/javascript" src="js/utility.js"></script>
		<table width="100%" height="50px" border="0" cellpadding="0" cellspacing="0">
	  	<tr>
		  	<td class="title0">商家信息详情<br></td>
		</tr>
	  	</table>
		
	  	<table width="100%" border="0" cellpadding="0" cellspacing="0" style="line-height:30px;">
	  		<tr>
	  			<th colspan="6" align="left">基本信息</th>
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">行政区划&nbsp</td>
	  			<td>
	  				<input type="text" id="RegionMainName" name="RegionMainName" value="<%=RegionMainName%>"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  				<input type="text" id="RegionName" name="RegionName" value="<%=RegionName%>"  readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			<td style="<%=style1%>">商圈&nbsp</td>
	  			<td>
	  				<input  type="text" id="GroupName" name="GroupName" value="<%=GroupName%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			
	  			<td style="<%=style1%>">来源&nbsp</td>
	  			<td>
	  				<input  type="text" id="InfoSource" name="InfoSource" value="<%=InfoSource%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  		</tr>
	  		
	  		<tr>
	  			<td style="<%=style1%>">签约状态&nbsp</td>
	  			<td>
	  				<input type="text" id="CheckStatus" name="CheckStatus" value="<%=CheckStatus%>"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  			</td>
	  			<td style="<%=style1%>">营业状态&nbsp</td>
	  			<td>
	  				<input  type="text" id="WorkStatus" name="WorkStatus" value="<%=WorkStatus%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			
	  			<td style="<%=style1%>">预定状态&nbsp</td>
	  			<td>
	  				<input  type="text" id="PreorderFlag" name="PreorderFlag" value="<%=PreorderFlag%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>	  	
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">公布状态&nbsp</td>
	  			<td>
	  				<input type="text" id="PublishState" name="PublishState" value="<%=PublishState%>"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  			</td>
	  			<td style="<%=style1%>">推荐状态&nbsp</td>
	  			<td>
	  				<input  type="text" id="RedFlag" name="RedFlag" value="<%=RedFlag%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			<td style="<%=style1%>">GPS&nbsp</td>
	  			<td>
	  				<input  type="text" id="X" name="X" value="<%=X%>" readonly="readonly" style="<%=input_text_gray%>" >
	  				<input  type="text" id="Y" name="Y" value="<%=Y%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>  	
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">名称&nbsp</td>
	  			<td>
	  				<input type="text" id="Name" name="Name" value="<%=Name%>"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  			</td>
	  			<td style="<%=style1%>">英文名&nbsp</td>
	  			<td>
	  				<input  type="text" id="NameEnglish" name="NameEnglish" value="<%=NameEnglish%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			<td style="<%=style1%>">别名/简称&nbsp</td>
	  			<td>
	  				<input  type="text" id="Alias" name="Alias" value="<%=Alias%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>  	
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">注册名&nbsp</td>
	  			<td>
	  				<input type="text" id="LoginName" name="LoginName" value="<%=LoginName%>"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  			</td>
	  			<td style="<%=style1%>">订餐电话&nbsp</td>
	  			<td>
	  				<input  type="text" id="Tel1" name="Tel1" value="<%=Tel1%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			<td style="<%=style1%>">地址&nbsp</td>
	  			<td>
	  				<input  type="text" id="Adress" name="Adress" value="<%=Adress%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>  	
	  		</tr>	
	  		<tr>
	  			<td style="<%=style1%>">邮编&nbsp</td>
	  			<td>
	  				<input type="text" id="PostCode" name="PostCode" value="<%=PostCode%>"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  			</td>
	  			<td style="<%=style1%>">交叉路口&nbsp</td>
	  			<td>
	  				<input  type="text" id="CrossRoad" name="CrossRoad" value="<%=CrossRoad%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			<td style="<%=style1%>">地标&nbsp</td>
	  			<td>
	  				<input  type="text" id="LandMark" name="LandMark" value="<%=LandMark%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>  	
	  		</tr>
	  		
	  		<tr>
	  			<td style="<%=style1%>">缩略图&nbsp</td>
	  			<td>
	  				<input type="text" id="Photo" name="Photo" value="图片暂无"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  			</td>
	  			<td style="<%=style1%>">交通路线&nbsp</td>
	  			<td>
	  				<input  type="text" id="Traffic" name="Traffic" value="<%=Traffic%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			<td style="<%=style1%>">企业介绍&nbsp</td>
	  			<td>
	  				<input  type="text" id="Descript" name="Descript" value="<%=Descript%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>  	
	  		</tr>
	  		
	  		<tr>
	  			<td style="<%=style1%>">Email&nbsp</td>
	  			<td>
	  				<input type="text" id="Email" name="Email" value="<%=Email%>"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  			</td>
	  			<td style="<%=style1%>">网址&nbsp</td>
	  			<td>
	  				<input  type="text" id="NetAddress" name="NetAddress" value="<%=NetAddress%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			<td style="<%=style1%>">传真&nbsp</td>
	  			<td>
	  				<input  type="text" id="Fax" name="Fax" value="<%=Fax%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>  	
	  		</tr>
	  		
	  		<tr>
	  			<td style="<%=style1%>">负责人&nbsp</td>
	  			<td>
	  				<input type="text" id="MainUser" name="MainUser" value="<%=MainUser%>"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  			</td>
	  			<td style="<%=style1%>">负责人电话&nbsp</td>
	  			<td>
	  				<input  type="text" id="MainUserTel" name="MainUserTel" value="<%=MainUserTel%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td> 	
	  		</tr>
	  		  		
	  	</table>	  	

	  	 <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" style="line-height:30px;">
	  	 	<tr>
	  			<th colspan="6" align="left">服务信息</th>
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">经营菜系&nbsp</td>
	  			<td>
	  				<input type="text" id="CourseSerialName" name="CourseSerialName" value="<%=CourseSerialName%>"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  			</td>
	  			<td style="<%=style1%>">招牌菜&nbsp</td>
	  			<td>
	  				<input  type="text" id="SpecialCourse" name="SpecialCourse" value="<%=SpecialCourse%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			<td style="<%=style1%>">风味&nbsp</td>
	  			<td>
	  				<input  type="text" id="Flavor" name="Flavor" value="<%=Flavor%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>  	
	  		</tr>
	  		
	  		<tr>
	  			<td style="<%=style1%>">人均消费&nbsp</td>
	  			<td>
	  				<input type="text" id="AvgFee" name="AvgFee" value="<%=AvgFee%>"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  			</td>
	  			<td style="<%=style1%>">最低消费&nbsp</td>
	  			<td>
	  				<input  type="text" id="LowFee" name="LowFee" value="<%=LowFee%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			<td style="<%=style1%>">折扣&nbsp</td>
	  			<td>
	  				<input  type="text" id="Discount" name="Discount" value="<%=Discount%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>  	
	  		</tr>
	  		
	  		<tr>
	  			<td style="<%=style1%>">包间&nbsp</td>
	  			<td>
	  				<input type="text" id="RoomFlag" name="RoomFlag" value="<%=RoomFlag%>"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  			</td>
	  			<td style="<%=style1%>">预定要求&nbsp</td>
	  			<td>
	  				<input  type="text" id="PreorderDescrip" name="PreorderDescrip" value="<%=PreorderDescrip%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			<td style="<%=style1%>">预定保留时间&nbsp</td>
	  			<td>
	  				<input  type="text" id="Reserve" name="Reserve" value="<%=Reserve%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>  	
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">营业时间&nbsp</td>
	  			<td>
	  				<input type="text" id="WorkTime" name="WorkTime" value="<%=WorkTime%>"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  			</td>
	  			<td style="<%=style1%>">包间数&nbsp</td>
	  			<td>
	  				<input  type="text" id="RoomNum" name="RoomNum" value="<%=RoomNum%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			<td style="<%=style1%>">设施&nbsp</td>
	  			<td>
	  				<input  type="text" id="Devices" name="Devices" value="<%=Devices%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>  	
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">是否接受信用卡&nbsp</td>
	  			<td>
	  				<input type="text" id="CreditCardFlag" name="CreditCardFlag" value="<%=CreditCardFlag%>"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  			</td>
	  			<td style="<%=style1%>">是否接受消费卡&nbsp</td>
	  			<td>
	  				<input  type="text" id="CousumeCardFlag" name="CousumeCardFlag" value="<%=CousumeCardFlag%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			<td style="<%=style1%>">卡类型说明&nbsp</td>
	  			<td>
	  				<input  type="text" id="CardTypeInfo" name="CardTypeInfo" value="<%=CardTypeInfo%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>  	
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">服务说明&nbsp</td>
	  			<td>
	  				<input type="text" id="ServiceDescrip" name="ServiceDescrip" value="<%=ServiceDescrip%>"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  			</td>
	  			<td style="<%=style1%>">停车说明&nbsp</td>
	  			<td>
	  				<input  type="text" id="ParkDescrip" name="ParkDescrip" value="<%=ParkDescrip%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			<td style="<%=style1%>">外卖说明&nbsp</td>
	  			<td>
	  				<input  type="text" id="OutDescrip" name="OutDescrip" value="<%=OutDescrip%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>  	
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">营业面积&nbsp</td>
	  			<td>
	  				<input type="text" id="Area" name="Area" value="<%=Area%>"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  			</td>
	  			<td style="<%=style1%>">环境&nbsp</td>
	  			<td>
	  				<input  type="text" id="Environment" name="Environment" value="<%=Environment%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			<td style="<%=style1%>">设施&nbsp</td>
	  			<td>
	  				<input  type="text" id="Device" name="Device" value="<%=Device%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>  	
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">关键字&nbsp</td>
	  			<td>
	  				<input type="text" id="KeyWords" name="KeyWords" value="<%=KeyWords%>"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  			</td>
	  			<td style="<%=style1%>">备注&nbsp</td>
	  			<td>
	  				<input  type="text" id="CommentText" name="CommentText" value="<%=CommentText%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			<td style="<%=style1%>">订金说明&nbsp</td>
	  			<td>
	  				<input  type="text" id="DepositDescrip" name="DepositDescrip" value="<%=DepositDescrip%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>  	
	  		</tr>	
	  	</table>	  	
  	
	  	<table width="100%" border="0" cellpadding="0" cellspacing="0" style="line-height:30px;">
	  		<tr>
	  			<th colspan="6" align="left">核单信息</th>  		
	  		</tr>
	  		<tr>
	  			<td style="<%=style1%>">核单模式&nbsp</td>
	  			<td>
	  				<input type="text" id="CheckOrderMode" name="CheckOrderMode" value="<%=CheckOrderMode%>"  readonly="readonly" style="<%=input_text_gray%>" >	   
	  			</td>
	  			<td style="<%=style1%>">核单人&nbsp</td>
	  			<td>
	  				<input  type="text" id="CheckContact" name="CheckContact" value="<%=CheckContact%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>
	  			<td style="<%=style1%>">核单人电话&nbsp</td>
	  			<td>
	  				<input  type="text" id="CheckTel" name="CheckTel" value="<%=CheckTel%>" readonly="readonly" style="<%=input_text_gray%>" >
	  			</td>  	
	  		</tr>
	  	</table> 

  	
  	<SCRIPT LANGUAGE="JavaScript">
  	
  		function onLoad() {
  			resetControls();
  		}
  		
  		function resetControls() 
  		{
 			if("<%=CheckStatus%>" == "1") {
 				document.getElementById("CheckStatus").value = "签约";
 			} else if("<%=CheckStatus%>" == "0") {
 				document.getElementById("CheckStatus").value = "未签约";
 			} else {
 				document.getElementById("CheckStatus").value = "未知状态";
 			}
 			
 			if("<%=WorkStatus%>" == "1") {
 				document.getElementById("WorkStatus").value = "正常";
 			} else if("<%=WorkStatus%>" == "2") {
 				document.getElementById("WorkStatus").value = "暂停营业";
 			 } else if("<%=WorkStatus%>" == "0") {
 				document.getElementById("WorkStatus").value = "关闭";	
 			} else {
 				document.getElementById("WorkStatus").value = "未知状态";
 			}
 			 
 			if("<%=PreorderFlag%>" == "1") {
 				document.getElementById("PreorderFlag").value = "可预定";
 			} else if("<%=PreorderFlag%>" == "0") {
 				document.getElementById("PreorderFlag").value = "不可预定";
 			} else {
 				document.getElementById("PreorderFlag").value = "未知状态";
 			}
 			
 			if("<%=InfoSource%>" == "1") {
 				document.getElementById("InfoSource").value = "合作商";
 			} else if("<%=InfoSource%>" == "2") {
 				document.getElementById("InfoSource").value = "普通商户";
 			} else {
 				document.getElementById("InfoSource").value = "未知状态";
 			}

 			if("<%=PublishState%>" == "1") {
 				document.getElementById("PublishState").value = "公布";
 			} else if("<%=PublishState%>" == "0") {
 				document.getElementById("PublishState").value = "不公布";
 			} else {
 				document.getElementById("PublishState").value = "未知状态";
 			}
 			
 			if("<%=RedFlag%>" == "1") {
 				document.getElementById("RedFlag").value = "红旗";
 			} else if("<%=RedFlag%>" == "2") {
 				document.getElementById("RedFlag").value = "正常";
 			} else if("<%=RedFlag%>" == "3"){
 				document.getElementById("RedFlag").value = "白旗";
 			} else if("<%=RedFlag%>" == "0"){
 				document.getElementById("RedFlag").value = "黑名单";
 			} else {
 				document.getElementById("RedFlag").value = "未知状态";
 			}
 			
 			if("<%=RoomFlag%>" == "1") {
 				document.getElementById("RoomFlag").value = "有";
 			} else if("<%=RoomFlag%>" == "0") {
 				document.getElementById("RoomFlag").value = "无";
 			} else {
 				document.getElementById("RoomFlag").value = "不祥";
 			}

 			if("<%=CreditCardFlag%>" == "1") {
 				document.getElementById("CreditCardFlag").value = "接受";
 			} else if("<%=CreditCardFlag%>" == "0") {
 				document.getElementById("CreditCardFlag").value = "不接受";
 			} else {
 				document.getElementById("CreditCardFlag").value = "不祥";
 			}
 			
 			if("<%=CousumeCardFlag%>" == "1") {
 				document.getElementById("CousumeCardFlag").value = "接受";
 			} else if("<%=CousumeCardFlag%>" == "0") {
 				document.getElementById("CousumeCardFlag").value = "不接受";
 			} else {
 				document.getElementById("CousumeCardFlag").value = "不祥";
 			}
 			
 			if("<%=CheckOrderMode%>" == "1") {
 				document.getElementById("CheckOrderMode").value = "已核单";
 			} else if("<%=CheckOrderMode%>" == "0") {
 				document.getElementById("CheckOrderMode").value = "未核单";
 			} else {
 				document.getElementById("CheckOrderMode").value = "未知状态";
 			}
 			
  		}
  		
 		function showMsg(data) {
  	  		alert(data);
 		}
  	
  		
  		
  	</SCRIPT>
	</body>
</html>
